Subjects SZip DLL Version 0.1

Introduction

SZipFile
SZipFolder
SUnZipFile
SZipFileInfo
SZipFileData
SZipFileList
Futur Expansions
 

>> Introduction



This DLL lets you Zip/UnZip file in mIRC. The DLL also contains functions returning various information on the contents of the Zip file.

Every function in this DLL returns a value if used with the $dll identifier. Z_OK if successful, Z_ERROR [message] otherwise.

The DLL makes use of multithreading to not lock mIRC while doing the Zip/UnZip operations. You will receive a signal SZIP event when the process terminates itself with the name of the zip file used during the operation that is like this "Z_OK <zip_filename>".

>> SZipFile



This Command lets you Zip a File.

Command:

/dll SZip.dll SZipFile filename > zipfile
$dll(SZip.dll,SZipFile,filename > zipfile)

Succes Return Value:

Z_OK

>> SZipFolder



This command Zips a folder and all it's subfolders to a Zip file.

Command:

/dll SZip.dll SZipFolder folder > zipfile
$dll(SZip.dll,SZipFolder,folder > zipfile)

Succes Return Value:

Z_OK

>> SUnZipFile



This command Unzips a Zip file to a specified location.

Command:

/dll SZip.dll SUnZipFile zipfile > directory
$dll(SZip.dll,SUnZipFile,zipfile > directory)

Succes Return Value:

Z_OK

>> SZipFileInfo



This command returns information on the Zip file.

Command:

/dll SZip.dll SZipFileInfo zipfile
$dll(SZip.dll,SZipFileInfo,zipfile)

Succes Return Value:

<numfiles>CHR9<numdirs>CHR9<compressed size (in bytes)>CHR9<uncompressed size (in bytes)>

>> SZipFileData



Returns information on the Nth file in the Zip file.

Command:

/dll SZip.dll SZipFileData zipfile > N
$dll(SZip.dll,SZipFileData,zipfile > N)

Succes Return Value:

<filename>CHR9<compressed size (in bytes)>CHR9<uncompressed size (in bytes)>CHR9<CRC32>

>> SZipFileList



This command lets you list rapidly the contents of a Zip file. You pass the command a mIRC Command that it calls with the data (same format as SZipFileData) for every file found in the Zip file (like the $findfile command parameter).

Command:

/dll SZip.dll SZipFileList zipfile > mIRCCommand
$dll(SZip.dll,SZipFileList,zipfile > mIRCCommand)

Succes Return Value:

Z_OK

>> Future Expansions



Comments, Suggestions and Ideas on commands i could integrate in the DLL are welcome.

Futur Stuff
  • Include the possibility to add files in an already existing Zip File.
  • Return more information on the files in the Zip file
  • The possibility to make to zip a file on a local drive and send it to another local drive

    SZip DLL



    - ClickHeRe
    - © 2003
    - Testing-> $me
    - Special Thanx-> $me

  • Zlib by Jean-loup Gailly and Mark Adler
  • Zlib API by Gilles Voliant
  • Zip/Unzip API Classes by Daniel Godson

    - #scriptsdb.org @ Undernet @ Webnet
    - http://scriptsdb.org


  • Tha... Help SDB mIRC Group Contact